﻿using BlogDemo.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BlogDemo.Core.Domain
{
    public class Tag : EntityBase<int>
    {
         public string Name { get; set; }

        public virtual ICollection<PostTag> PostTags { get; set; }

        // 多对多，无中间Model
        // public ICollection<Post> Posts { get; set; }

        public Tag()
        {
            PostTags = new List<PostTag>();
        }
    }
}
